<?php

/**
 * 仓库信息管理
 * @copyright   Copyright (c) 2006 - 2010 DZH 友拓软件友拓通
 * @category    基本信息
 * @package   Model
 * @author     庄敏学
 * @version  2.1,2012-07-22
 */

class WarehousePublicModel extends CommonModel {
	
	protected $tableName = 'warehouse';
	
	// 自动验证设置
	protected $_validate	 =	 array(
			array("w_no",'require',"require",1), //仓库编号
			array("w_no",'is_no',"valid_error",1),  
			array("w_no",'repeat',"repeat",1,'unique'),//验证唯一 
			array("w_name",'require',"require",1), //仓库名称 
			array("w_name",'repeat',"repeat",1,'unique'), //仓库名称 
			array("basic_id",'require',"require",1), //所属公司
	);
}